/**
 * @(#)com.pattern.p_03_decorated.coffee.Drink
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_03_decorated.coffee;

/**
 * @author fusf
 * @version 1.0  2016/11/9
 */
public abstract class Drink {

    protected String description = "";

    private float price = 0f;

    public abstract float cost();


    public String getDescription() {
        return description + "-" + price;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
